package com.ruoyi.ea.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ea.mapper.EaHelpMapper;
import com.ruoyi.ea.domain.EaHelp;
import com.ruoyi.ea.service.IEaHelpService;

/**
 * 就业帮扶Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-01-29
 */
@Service
public class EaHelpServiceImpl implements IEaHelpService 
{
    @Autowired
    private EaHelpMapper eaHelpMapper;

    /**
     * 查询就业帮扶
     * 
     * @param id 就业帮扶主键
     * @return 就业帮扶
     */
    @Override
    public EaHelp selectEaHelpById(Long id)
    {
        return eaHelpMapper.selectEaHelpById(id);
    }

    /**
     * 查询就业帮扶列表
     * 
     * @param eaHelp 就业帮扶
     * @return 就业帮扶
     */
    @Override
    public List<EaHelp> selectEaHelpList(EaHelp eaHelp)
    {
        return eaHelpMapper.selectEaHelpList(eaHelp);
    }

    /**
     * 新增就业帮扶
     * 
     * @param eaHelp 就业帮扶
     * @return 结果
     */
    @Override
    public int insertEaHelp(EaHelp eaHelp)
    {
        return eaHelpMapper.insertEaHelp(eaHelp);
    }

    /**
     * 修改就业帮扶
     * 
     * @param eaHelp 就业帮扶
     * @return 结果
     */
    @Override
    public int updateEaHelp(EaHelp eaHelp)
    {
        return eaHelpMapper.updateEaHelp(eaHelp);
    }

    /**
     * 批量删除就业帮扶
     * 
     * @param ids 需要删除的就业帮扶主键
     * @return 结果
     */
    @Override
    public int deleteEaHelpByIds(Long[] ids)
    {
        return eaHelpMapper.deleteEaHelpByIds(ids);
    }

    /**
     * 删除就业帮扶信息
     * 
     * @param id 就业帮扶主键
     * @return 结果
     */
    @Override
    public int deleteEaHelpById(Long id)
    {
        return eaHelpMapper.deleteEaHelpById(id);
    }
}
